﻿<script language="javascript" type="text/javascript" src="./js/Common.js"></script>

<%@ Page Language="C#" AutoEventWireup="True" Inherits="PlugNT.Cms.Web.Admin.Pre_Article.Edit"
    ValidateRequest="false" EnableEventValidation="false" CodeBehind="Edit.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>编辑</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
    <link rel="stylesheet" id='skin' type="text/css" href="../js/frame/ymPrompt/skin/qq/ymPrompt.css" />
    <script language="javascript" type="text/javascript" src="../../Tools/Editer/fck/fckeditor.js"></script>
    <script language="javascript" type="text/javascript" src="../js/frame/ymPrompt/ymPrompt.js"></script>
    <script language="javascript" type="text/javascript" src="./js/article.js"></script>
    <script type="text/javascript" src="/Tools/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="/Tools/ckfinder/ckfinder.js"></script>
    <script language="javascript" type="text/javascript" src="/js/Common.js"></script>
      <script language="javascript" type="text/javascript"  src="../js/jquery.js"></script>
</head>
<body>
    <div class="frmstatic" style="display: block">
        <span class="frmbar" style="margin: 0 12px;"></span><span class="frmbar" style="margin: 0 11px;">
        </span>
        <div class="controls">
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                    <td align="left">
                        <table>
                            <tr>
                                <td>
                                    <img src="../images/maintenance_32x32.gif" width="16" height="16" />
                                </td>
                                <td>
                                    <label>
                                        核心 > 编辑内容</label>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td align="right">
                        <span>操作 > </span><a href='javascript:window.history.back();'>返回</a>
                    </td>
                </tr>
            </table>
        </div>
        <span class="frmbar" style="margin: 0 11px;"></span><span class="frmbar" style="margin: 0 12px;">
        </span>
    </div>
    <div class="frmstatic" style="display: block">
        <table width="100%" border="0" cellpadding="10" cellspacing="0">
            <tr valign="top">
                <td valign="top">
                    <form id="form1" runat="server">
                    <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
                        <tr valign="top">
                            <td valign="top">
                                <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff"
                                    id="add_table">
                                    <tr>
                                        <td width="145" align="right" valign="bottom" bgcolor="#ecf5ff">
                                            选择： &nbsp;
                                        </td>
                                        <td colspan="2" align="left" valign="middle" bgcolor="#ecf5ff">
                                            切换模式
                                            <label for="_ms_0">
                                                <input id="_ms_0" name="_ms" type="radio" value="1" onclick="SwapMs('c');" checked>详细模式</label>
                                            <label for="_ms_1">
                                                <input id="_ms_1" name="_ms" type="radio" value="2" onclick="SwapMs('s');">简单模式</label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="145" align="right" nowrap bgcolor="#F4FBFF">
                                            内容标题： &nbsp;
                                        </td>
                                        <td width="91%" bgcolor="#F4FBFF">
                                            <asp:TextBox ID="txttitle" runat="server" Width="400px" CssClass="input"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txttitle"
                                                ErrorMessage="<span style='color:#ff0000;'>请填写标题</span>" Display="Dynamic"></asp:RequiredFieldValidator>
                                            <asp:CheckBox Checked="false" ID="stick" runat="server" Text="置顶" title="内容置顶" />
                                            <asp:CheckBox Checked="false" ID="commend" runat="server" Text="推荐" title="内容推荐" />
                                            <asp:CheckBox Checked="true" ID="publish" runat="server" Text="发布和生成(不选将删除文件)" title="内容发布" />
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr id="tr_0001">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            属性： &nbsp;
                                        </td>
                                        <td valign="top" bgcolor="#F4FBFF">
                                            <table width="500" border="0" cellpadding="3" cellspacing="0">
                                                <tr>
                                                    <td nowrap>
                                                        出处:
                                                        <asp:TextBox ID="txtinfor" runat="server" CssClass="input" Width="50px" Height="20px">原创</asp:TextBox>
                                                    </td>
                                                    <td nowrap>
                                                        作者:
                                                        <asp:TextBox ID="txtauthor" runat="server" CssClass="input" Width="50px" Height="20px"></asp:TextBox>
                                                    </td>
                                                    <td nowrap>
                                                        阅读次数:
                                                        <asp:TextBox ID="txthits" runat="server" CssClass="input" Width="40px" Height="20px"
                                                            Text="0"></asp:TextBox>
                                                    </td>
                                                    <td nowrap>
                                                        顶次数:
                                                        <asp:TextBox ID="txtdig" runat="server" CssClass="input" Width="40px" Height="20px"
                                                            Text="0"></asp:TextBox>
                                                    </td>
                                                    <td nowrap>
                                                        权重(排序):
                                                        <asp:TextBox ID="txtorders" runat="server" CssClass="input" Width="40px" Height="20px"
                                                            Text="0"></asp:TextBox>
                                                    </td>
                                                    <td nowrap>
                                                        (均为可选属性)
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td align="center" valign="middle" nowrap bgcolor="#F4FBFF" width="35">
                                            <a href="#" title="可选项" id="_c1"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr id="tr_0002">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            副标题： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <asp:TextBox ID="txtsubtitle" runat="server" Width="320px" CssClass="input"></asp:TextBox>
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="_c2"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr id="tr_0003">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            关键字： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <asp:TextBox ID="keyword" runat="server" Width="400px" CssClass="input"></asp:TextBox>
                                            <span class="_help">[每个关键字请用英文的逗号隔开例“,”] </span>
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="_c2"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr id="tr_0004">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            摘要： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <asp:TextBox ID="txtzhaiyao" runat="server" Width="400px" CssClass="input" Height="45px"
                                                TextMode="MultiLine"></asp:TextBox>
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="_c3"><font color="#C2CCCC">X</font></a>&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            栏目/分类： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <asp:HiddenField ID="hidClsno" runat="server" />
                                            <asp:DropDownList ID="ddlMenu" runat="server">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlMenu"
                                                ErrorMessage="<span style='color:#ff0000;'>请填选择分类</span>" Display="Dynamic"></asp:RequiredFieldValidator>
                                            (必填，粉红色部分为未绑定模板)
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr id="tr_0005">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            形象图： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF" style="position: relative;">
                                            <input id="iptpic" type="text" style="display: none;" onpropertychange="AddPic(this.value);" />
                                            <asp:TextBox ID="txtpic" CssClass="input" runat="server" Width="350px">NO</asp:TextBox>
                                            <span id="txtpicsrc" style="display: none;"></span>&nbsp;&nbsp;&nbsp; <span style="cursor: pointer;"
                                                onclick="BrowseServer('<%=txtpic.ID %>');">
                                                <img src="../images/up.png" alt="修改图片" style="position: absolute; top: 12px; left: 375px;" />
                                                <span style="position: absolute; top: 14px; left: 395px;">添加图片</span></span>
                                            <br />
                                            <span class="tip">多幅图片以逗号“,”分割(所以字符数不能超过250)</span>
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="_c4"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr id="tr_0006">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            链接： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <asp:TextBox ID="txturl" runat="server" CssClass="input" Width="320px"></asp:TextBox>
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="_c5"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr id="tr_0007">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            跳转URL： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <asp:TextBox ID="jumpurl" runat="server" CssClass="input" Width="320px"></asp:TextBox>
                                            <asp:CheckBox Checked="false" ID="jumpurl_on_of" onclick="SwapJumpUrl();" runat="server"
                                                Text="启用跳转" title="内容跳转" />
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="_c6"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr id="tr_0008">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            标签TAG： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <asp:TextBox ID="txttag" runat="server" CssClass="input" Width="320px"></asp:TextBox>
                                            <span class="_help">[每个标签请用英文的逗号隔开例“,”] </span>
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="_c7"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr id="tr_0009">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            生成路径： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="txtcreatepath" runat="server" CssClass="input" Width="250px"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        文件名： &nbsp;
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtpagename" runat="server" CssClass="input" Width="100px"></asp:TextBox>
                                                        <span class="_help">[默认为当前目录下的文件夹名称] </span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="A1"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr id="tr_0010">
                                        <td align="right" valign="middle" nowrap bgcolor="#F4FBFF">
                                            内容↓： &nbsp;
                                        </td>
                                        <td align="left" valign="top" nowrap bgcolor="#F4FBFF" class="_help">
                                            <span style="color: #377a01;">(编辑器支持在线编辑粘贴内容时请清除原有内容格式,编辑器有新模板时需要清除ie缓存才能看到新添加的模板。</span>)
                                            <br />
                                            <asp:TextBox ID="txtContext" runat="server" Rows="10" TextMode="MultiLine"></asp:TextBox>
                                            <script type="text/javascript">                                                CKEDITOR.replace('txtContext')</script>
                                        </td>
                                        <td align="center" valign="top" nowrap bgcolor="#F4FBFF" class="_help">
                                            <a href="#" title="可选项" id="_c8"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr id="tr_0011">
                                        <td align="right" nowrap bgcolor="#F4FBFF">
                                            扩展字段： &nbsp;
                                        </td>
                                        <td bgcolor="#F4FBFF">
                                            <div id="div_extend" runat="server">
                                            </div>
                                        </td>
                                        <td align="center" nowrap bgcolor="#F4FBFF">
                                            <a href="#" title="可选项" id="A2"><font color="#C2CCCC">X</font></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="middle" nowrap bgcolor="#F4FBFF">
                                        </td>
                                        <td height="100" colspan="2" align="left" nowrap bgcolor="#F4FBFF">
                                            <asp:ImageButton ID="imgBtnSubmit" runat="server" ImageUrl="../images/submit-bt.gif"
                                                OnClick="imgBtnSubmit_Click" />
                                            <span class="_help">(发布参考/注意事项)</span>
                                            <asp:HiddenField ID="hidReferrer" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    </form>
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
<script type="text/javascript">
    SwapJumpUrl();
    SwapTextColor('txtcreatepath');
    SwapTextColor('txtpagename');
</script>
